import config from 'config';
import httpFetch from 'share/httpFetch';
import errorMessage from 'share/errorMessage';
export default {
  //获取报表类型
  getReportList(params) {
    // let params = {
    //   page:0,
    //   size:10
    // }
    return new Promise(function (resolve, reject) {
      httpFetch.get(config.baseUrl + '/report/api/report/list',params)
        .then(function (response) {
          resolve(response)
        })
        .catch(function (err) {
          errorMessage(err.response);
          reject(err.response);
        })
    })
  },
}
